﻿@model  NB.MGJ.Model.AntiFleeing_Transshipment
@{
    Layout = null;
}
@*编辑产品调货信息*@
<script src="~/Scripts/MGJJS/FleeGoods/CommonBox.js"></script>
<style>
    .form-horizontal .form-group {
        margin-bottom: 15px;
    }
</style>
<form class="form-horizontal" id="form" onkeydown="if(event.keyCode==13){return false;}">
    @Html.HiddenFor(m => m.ID)
    <div class="form-group">
        <label class="col-sm-2 control-label">调货编码：</label>
        <div class="col-sm-10">
            @*@Html.TextBoxFor(p => p.FormCode, new { @class = "form-control", @placeholder = "调货编码", maxlength = 64, disabled = "disabled" })*@
            <input type="text" class="form-control" placeholder="调货编码" name="FormCode" id="FormCode" value="@Model.FormCode" readonly>
            <div style="color:red">调货编码：经销商编号-产品编号-当前时间</div>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">产品名称：</label>
        <div class="col-sm-10">
            @Html.TextBoxFor(p => p.ProductName, new { @class = "form-control", @placeholder = "产品名称", maxlength = 64, disabled = "disabled" })
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">调货数量：</label>
        <div class="col-sm-10">
            @Html.TextBoxFor(p => p.Num, new { @class = "form-control", @placeholder = "调货数量", maxlength = 64, disabled = "disabled" })
        </div>
    </div>

    <div class="form-group" style="display:flex;align-items:center">
        <label class="col-sm-2 control-label">查看物流码：</label>
        <div class="col-sm-10">
            <a href="#" onclick="$.MGJ.CommonBox.Dialog_CommonBox('@Model.FilePath')">查看物流码</a>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">备注：</label>
        <div class="col-sm-10">
            @Html.TextBoxFor(p => p.Remark, new { @class = "form-control", @placeholder = "备注", maxlength = 64, })
        </div>
    </div>
</form>
<script>
     var formCode='@Model.FormCode';
    if (formCode.replace(/(^s*)|(s*$)/g, "").length == 0) {
        var distributor='@Model.FromDistributor';
        var proId='@Model.ProductID';
        $.MGJ.CommonBox.FromCode(distributor + "-" + proId)
    }  
</script>

